ISlave.AoeReadWriteCommand 方法
透过 AoE (ADS over EtherCAT) 同时读写资料。
命名空间:IntervalZero.KINGSTAR.Base.Class组合: IntervalZero.KINGSTAR.Base.Class (于 IntervalZero.KINGSTAR.Base.dll) 版本:4.4.0.0
语法
IKsCommand<byte[]> AoeReadWriteCommand(
int port,
int indexGroup,
int indexOffset,
int readLength,
byte[] writeValue
)
Function AoeReadWriteCommand(
port As Integer,
indexGroup As Integer,
indexOffset As Integer,
readLength As Integer,
writeValue As Byte()
) As IKsCommand(Of Byte())
参数
port
型别:int
EtherCAT 从站埠。
indexGroup
型别:int
欲读写的物件索引群组。
indexOffset
型别:int
群组中物件的偏移量。
readLength
型别:int
欲读取的值其长度(单位:位元组)。
writeValue
型别:byte[]
缓冲区的指标,缓冲区包含欲写入的值。
回传值
型别:IKsCommand<byte[]>
回传方法的状态及一个位元组阵列。
可用的 EtherCAT 状态
ecatPreOP, ecatSafeOP, ecatOP
参见